*** Settings ***
Library           FN

*** Test Cases ***
1.1 customerId为空查询年账单，返回为空
    Init Step
    ${interface}    Set Variable    cn.com.servyou.business.obc.facade.BillQueryFacade
    ${method}    Set Variable    queryByYear
    ${customerId}    Set Variable    ${EMPTY}
    ${serviceType}    Set Variable    ${PTS_INFO['serviceTypeName']}
    ${year}    Set Variable    2020
    ${month}    Set Variable    9
    Clear Step
    ${post_data}    Create Dictionary
    Set To Dictionary    ${post_data}    customerId    ${customerId}
    Set To Dictionary    ${post_data}    serviceType    ${serviceType}
    Set To Dictionary    ${post_data}    year    ${year}
    Doing Step
    ${resp}    Dubbo Invoke    ${OBC_ZK_ADDR}    ${interface}    ${method}    ${post_data}    ${DUBBO_PAMAR_STRING}
    Length Should Be    ${resp['list']}    0
    Check Step
    Validate Schema    ${resp}
    Close Step

1.2 serviceType为空查询年账单，返回为空
    Init Step
    ${interface}    Set Variable    cn.com.servyou.business.obc.facade.BillQueryFacade
    ${method}    Set Variable    queryByYear
    ${customerId}    Get UUID
    ${serviceType}    Set Variable    ${EMPTY}
    ${year}    Set Variable    2020
    ${month}    Set Variable    9
    Clear Step
    ${post_data}    Create Dictionary
    Set To Dictionary    ${post_data}    customerId    ${customerId}
    Set To Dictionary    ${post_data}    serviceType    ${serviceType}
    Set To Dictionary    ${post_data}    year    ${year}
    Doing Step
    ${resp}    Dubbo Invoke    ${OBC_ZK_ADDR}    ${interface}    ${method}    ${post_data}    ${DUBBO_PAMAR_STRING}
    Length Should Be    ${resp['list']}    0
    Check Step
    Validate Schema    ${resp}
    Close Step

1.3 year为空查询年账单，返回为空
    Init Step
    ${interface}    Set Variable    cn.com.servyou.business.obc.facade.BillQueryFacade
    ${method}    Set Variable    queryByYear
    ${customerId}    Get UUID
    ${serviceType}    Set Variable    ${PTS_INFO['serviceTypeName']}
    ${year}    Set Variable    ${EMPTY}
    ${month}    Set Variable    9
    Clear Step
    ${post_data}    Create Dictionary
    Set To Dictionary    ${post_data}    customerId    ${customerId}
    Set To Dictionary    ${post_data}    serviceType    ${serviceType}
    Set To Dictionary    ${post_data}    year    ${year}
    Doing Step
    ${resp}    Dubbo Invoke    ${OBC_ZK_ADDR}    ${interface}    ${method}    ${post_data}    ${DUBBO_PAMAR_STRING}
    Length Should Be    ${resp['list']}    0
    Check Step
    Validate Schema    ${resp}
    Close Step
